<?php
defined('IN_IXDCW') or exit('Access Denied');
include tpl('header');
show_menu($menus);
?>
<form action="?">
    <div class="tt">会员搜索</div>
    <input type="hidden" name="moduleid" value="<?php echo $moduleid;?>"/>
    <input type="hidden" name="action" value="<?php echo $action;?>"/>
    <table cellpadding="2" cellspacing="1" class="tb">
        <tr>
            <td>&nbsp;
                <input type="text" size="20" name="username" value="<?php echo $kw;?>" title="用户名"/>&nbsp;
				<?php echo ajax_area_select('areaid', '所在地区', $areaid);?>&nbsp;
                &nbsp;
                <input type="text" name="psize" value="<?php echo $pagesize;?>" size="20" class="t_c" title="条/页"/>
                <input type="submit" value="搜 索" class="btn"/>&nbsp;
                <input type="button" value="重 置" class="btn" onclick="window.location='?moduleid=<?php echo $moduleid;?>&action=<?php echo $action;?>';"/>
            </td>
        </tr>
    </table>
</form>
<form method="post">
    <div class="tt">会员管理</div>
    <table cellpadding="2" cellspacing="1" class="tb">
        <tr>
            <th width="25"><input type="checkbox" onclick="checkall(this.form);"/></th>
            <th>会员ID</th>
            <th>会员名称</th>
            <th>企业</th>
            <th>会员组</th>
            <th width="100">操作</th>
        </tr>
		<?php foreach ($stores as $k => $v) { ?>
        <tr onmouseover="this.className='on';" onmouseout="this.className='';" align="center">
            <td><input type="checkbox" name="userid[]" value="<?php echo $v['userid'];?>"/></td>
            <td class="px11"><?php echo $v['userid'];?></td>
            <td align="left">&nbsp;<a href="?moduleid=<?php echo $moduleid;?>&action=show&userid=<?php echo $v['userid'];?>" title="<?php echo $v['truename'];?>"><?php echo $v['username'];?></a></td>
            <td align="left">&nbsp;<a href="<?php echo userurl($v['username']);?>" target="_blank"><?php echo $v['company'];?></a></td>
            <td><a href="?moduleid=<?php echo $moduleid;?>&groupid=<?php echo $v['groupid'];?>"><?php echo $GROUP[$v['groupid']]['groupname'];?></a></td>
            <td>
                <a href="?moduleid=<?php echo $moduleid;?>&action=edit&userid=<?php echo $v['userid'];?>"><img src="admin/image/edit.png" width="16" height="16" title="修改" alt=""/></a>&nbsp;
            </td>
        </tr>
		<?php }?>
    </table>
</form>
<div class="pages"><?php echo $pages;?></div>
<script type="text/javascript">Menuon(0);</script>
<?php include tpl('footer'); ?>